package database.local;

import android.os.Parcel;
import android.os.Parcelable;

public class CheckIn implements Parcelable{
	private String user_name;
	private String email;
	private String pic;
	private String facebook_link;
	
	public CheckIn(String user_name, String email, String pic, String facebook_link) {
		this.user_name = user_name;
		this.email = email;
		this.pic = pic;
		this.facebook_link = facebook_link;
	}

	public String getUser_name() {
		return user_name;
	}

	public String getEmail() {
		return email;
	}

	public String getPic() {
		return pic;
	}
	
	public String getFacebook_link() {
		return facebook_link;
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(user_name);
		dest.writeString(email);
		dest.writeString(pic);
		dest.writeString(facebook_link);
	}
	
	public static final Parcelable.Creator CREATOR =
	    	new Parcelable.Creator() {
	            public CheckIn createFromParcel(Parcel in) {
	                return new CheckIn(in);
	            }
	 
	            public Comment[] newArray(int size) {
	                return new Comment[size];
	            }
	        };
	        
	 public CheckIn(Parcel in) {
		 user_name =in.readString();
		 email = in.readString();
		 pic = in.readString();
		 facebook_link = in.readString();
	 }


}
